Safe Dynamic Multiple Inheritance
نویسنده
چکیده
Combination of descriptive entities—i.e. multiple inheritance and related mechanisms—is usually only supported at compile time in statically typed languages. The language gbeta is statically typed and has supported run-time creation of classes and methods since 1997, by means of the pattern combination operator ‘&’. However, with certain combinations of operands the ‘&’ operator fails; as a result, creation of new classes and methods at run-time had to be considered a dangerous operation. This paper presents a large and useful class of combinations, and proves that combinations in this class will always succeed.
منابع مشابه
Automatically generated type-safe GTK+ binding for Dylan
We present an automated way to get language bindings for GTK+ for Dylan [2], an object-oriented functional programming language related to Lisp. Dylan supports multiple inheritance, polymorphism, multiple dispatch, keyword arguments, pattern-based syntax extension macros, and many other features. The generated binding is type-safe, no upand downcasts are needed.
متن کاملDynamic Inheritance and Static
In the area of object-orientation there is a long-standing schism between the rigid but safe statically typed languages, and the expressive and exible but less safe \typeless" languages. Many eeorts have aimed at combining the best of both. This paper presents a language mechanism which enhances the exibility and expressivity of static languages while preserving the safety properties. It is an ...
متن کاملSafe Cross-Language Inheritance
Inheritance is a standard means for reuse and for interfacing with external libraries. In a multi-language software product, extending a class written in a statically-typed language with a dynamicallytyped class can require a significant number of manual indirections and other error-prone complications. Building on our previous interoperability work, we introduce a technique that allows safe, e...
متن کاملA dynamic, portable and safe approach to byte-code transformation
A powerful feature of the Java programming language is its user-definable class loading policy, which when combined with the namespace independence between class loaders, allows portable implementation of semidynamic program transformations. Such transformations can be used for a range of purposes, including optimization and semantic extension. In this paper we present a framework for semantic ...
متن کاملA Formal De nition of theDynamic Semantics of the Ei
This paper formally deenes the dynamic semantics of the Eiiel language in an operational style using Natural Semantics. We present a technique to describe object-oriented features such as message passing, multiple inheritance, polymorphism, redeenition and dynamic binding.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Nord. J. Comput.
دوره 9 شماره
صفحات -
تاریخ انتشار 2002